package com.ifonly.datatables;

/**
 * <p>
 * . DataTables 常量
 * </p>
 *
 * @author Jerry Ou
 * @version 1.0 2015-09-07 10:21
 * @since JDK 1.6
 */
public class DTConstants {

    public static final String C_FILTER = "c_filter";
    public static final String C_FILTER_PREFIX = "f-";
    public static final String C_FILTER_SPLIT = "-";

    public static final String DRAW = "draw";
    public static final String START = "start";
    public static final String LENGTH = "length";

    public static final String ORDER_PREFIX = "order[";
    public static final String COLUMNS_PREFIX = "columns[";

    public static final String COLUMNS_$_DATA = "columns[%s][data]";
    public static final String COLUMNS_$_NAME = "columns[%s][name]";
    public static final String COLUMNS_$_SEARCHABLE = "columns[%s][searchable]";
    public static final String COLUMNS_$_ORDERABLE = "columns[%s][orderable]";
    public static final String COLUMNS_$_SEARCH_VALUE = "columns[%s][search][value]";
    public static final String COLUMNS_$_SEARCH_REGEX = "columns[%s][search][regex]";

    public static final String SEARCH_VALUE = "search[value]";
    public static final String SEARCH_REGEX = "search[regex]";

    public static final String ORDER_$_COLUMN = "order[%s][column]";
    public static final String ORDER_$_DIR = "order[%s][dir]";

}